<!--
/**********************************************
 * 
 * File Name				:	menu.jsp
 * 
 * Last Changed Date		: 	$Date: 2010-03-09 22:04:24 +0800 (星期二, 09 三月 2010) $
 * 
 * Last Changed Revision	:	$Revision: 129 $
 * 
 * Last Changed Author		:	$Author: l101y1982j $
 * 
 * File Header URL			:	$HeadURL: svn://www.svnhost.cn/Busi-Building/code/branch/WebContent/com/busibuilding/administrate/sysmgmt/menu.jsp $
 * 
 * ********************************************
 */
-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="com.busibuilding.common.Constants" %>
<%@ include file="/com/busibuilding/common/taglibs.jsp"%>
<script type="text/javascript" src="<%=request.getContextPath()%>/dwr/interface/MenuUtil.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/dwr/engine.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/dwr/util.js"></script>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
	marginheight="0">
<s:form theme="simple" id="menuForm" namespace="/admin">
<s:hidden name="showTable" />
<s:hidden name="showAddPage" />
<s:hidden name="currentPage" />
	<table width="100%" border="0" align="center">
		<tr>
			<td colspan="5">&nbsp;</td>
		</tr>
		<tr>
			<td style="padding-left: 10px; padding-right: 10px; vertical-align: top; width: 100%;" class="content">
			<table width="100%" border="0" cellpadding="0" cellspacing="0" >
				<tr>
					<td width="5%"></td>
					<td>
					<TABLE width="100%" class="wwFormTable"  border="0" cellpadding="5" cellspacing="5">
						<tr>
							<td colspan="5">&nbsp;</td>
						</tr>
						<tr>
							<td colspan="5" class="pageTitle" align="left">
								<table class="pageTitle">
									<tr>
										<td width="4%">&nbsp;
										</td>
										<td colspan="4" class="pageTitle">
											<font size="4" >
												<s:text name="admin.sysmgmt.menu.label.pageTitle" />
											</font>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td colspan="5">&nbsp;</td>
						</tr>
						<tr>
							<td width="8%">&nbsp;</td>
							<td colspan="4" class="compulsory"><s:text name="admin.loginPage.label.noteTips"/></td>
						</tr>
						<tr>
							<td colspan="5">&nbsp;</td>
						</tr>
						<tr>
							<td colspan="5" align="left">
								<table>
									<tr>
										<td width="4%">&nbsp;
										</td>
										<td colspan="4" class="pageTitle">
											<span><s:actionerror /></span>
											<span><s:actionmessage/></span>
											<br><br>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td colspan="5">
								<table class="subTitle">
									<tr>
										<td width="4%" class="subTitle">&nbsp;
										</td>
										<td colspan="4" class="subTitle">
											<s:text name="admin.sysmgmt.menu.label.searchCriteria" />											
										</td>
									</tr>
								</table> 
								
							</td>
						</tr>
						<tr>
							<td colspan="5">&nbsp;</td>
						</tr>
						<tr>
							<td width="8%">&nbsp;</td>
							<td align="left" class="label" width="15%">
								<s:text name="admin.sysmgmt.menu.label.menuCode"/>:
							</td>
							<td colspan="3" align="left">
								<s:textfield name="searchForm.menuCode" size="30" cssClass="smallTextbox"/>
							</td>
						</tr>
						<tr>
							<td width="8%">&nbsp;</td>
							<td align="left" class="label" width="15%">
								<s:text name="admin.sysmgmt.menu.label.menuName"/>:
							</td>
							<td colspan="3" align="left">
								<s:textfield name="searchForm.menuName" size="30" cssClass="smallTextbox"/>
							</td>
						</tr>
						<tr>
							<td width="8%">&nbsp;</td>
							<td align="left" class="label" width="15%">
								<s:text name="admin.sysmgmt.menu.label.menuCategory"/>:
							</td>
							
							<td colspan="3">
								<s:select list="parentMenuList" name="searchForm.menuCategory" listKey="menuId" listValue="menuName"
								headerKey="" headerValue="---- 请选择菜单分类  ----"
								id="mcType" cssClass="smallSelect"/>
							</td>
						</tr>
						<tr>
							<td width="8%">&nbsp;</td>
							<td align="left" class="label" width="15%">
								<s:text name="admin.sysmgmt.menu.label.menuType"/>:
							</td>
							
							<td colspan="3">
								<s:select list="menuTypeList" name="searchForm.menuType" listKey="code" listValue="codeName"
								headerKey="" headerValue="---- 请选择菜单类型  ----"
								id="mType" cssClass="smallSelect"/>
							</td>
						</tr>
						
						<tr>
							<td colspan="5">&nbsp;</td>
						</tr>
						<tr>
							<td colspan="5">&nbsp;</td>
						</tr>
						<tr>
							<td width="8%">&nbsp;</td>
							<td colspan="4" align="left"> 
								
								<input class="button" type="button" value='<s:text name="general.button.search"/>' id="menuSearchButton"
								onclick="resubmit('menuAction_searchMenu.action','menuForm','')" />
								<input class="button" type="button" value='<s:text name="general.button.clear"/>' id="menuClearButton"
								onclick="resubmit('menuAction_clear.action','menuForm','')"/>
								<input class="button" type="button" value='<s:text name="general.button.add"/>' id="menuAddButton"
								onclick="resubmit('menuAction_inputCreateMenu.action','menuForm','')"/>
							</td>
						</tr>
						<tr>
							<td colspan="5">&nbsp;</td>
						</tr>
						<s:if test="showTable">
						<tr>
							<td colspan="5">
								<table class="subTitle">
									<tr>
										<td width="4%" class="subTitle">&nbsp;
										</td>
										<td colspan="4" class="subTitle">
											<s:text name="admin.sysmgmt.menu.label.searchResult" />											
										</td>
									</tr>
								</table> 
								
							</td>
						</tr>
							<tr>
								<td colspan="5" >
								<table id="display" cellpadding="1" cellspacing="1">
									<tr>
										<td width="2%">&nbsp;</td>
										<td align="left">
											<display:table id="displaylist" name="menuDisplayList" 
												requestURI="/admin/menuAction_searchMenu.action"
												style="width:98%" sort="external" pagesize="10" cellpadding="1" cellspacing="1" class="displaytable" partialList="true" size="fullListSize">
												<display:column 
													titleKey="admin.sysmgmt.menu.label.sn" 
													style="text-align:center;"													
													headerClass="displayHead">
													${displaylist_rowNum}
												</display:column>
												
												<display:column 
													titleKey="admin.sysmgmt.menu.label.menuCode" 
													sortable="true"
													style="text-align: center;" 
													headerClass="displayHead" >
													
													<a href='menuAction_inputUpdateMenu.action?id=${displaylist.menuId}&page=${page}' >
														${displaylist.menuCd}
													</a>
												</display:column>
												<display:column 
													titleKey="admin.sysmgmt.menu.label.menuName"
													property="menuName"
													style="text-align: center;" 
													headerClass="displayHead" />
												<display:column 
													titleKey="admin.sysmgmt.menu.label.menuParent"
													property="menuParentDisplay"
													style="text-align: center;" 
													headerClass="displayHead" />
	
												<display:column 
													titleKey="admin.sysmgmt.menu.label.menuType"
													property="menuTypeDisplay"
													style="text-align: center;" 
													headerClass="displayHead" />
	
												<display:column 
													titleKey="admin.sysmgmt.menu.label.menuUrl"
													property="menuUrl"
													style="text-align: left;" 
													headerClass="displayHead"
													/>
	
												<display:column 
													titleKey="admin.sysmgmt.menu.label.createdBy"
													property="displayCreatedBy"
													style="text-align: center;" 
													headerClass="displayHead"
													/>
	
												<display:column 
													titleKey="admin.sysmgmt.menu.label.createdDate"
													property="createdDate"
													style="text-align: center;" 
													headerClass="displayHead" 
													format="{0,date,yyyy-MM-dd HH:mm:ss}"
													/>
											</display:table>
											<script type="text/javascript">
												handleDisplayTag('displaylist');
											</script>
									</td>
									</tr>
								</table>
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							</tr>
						</s:if>
						<s:if test="showAddPage || showUpdatePage">
							<s:include value="/com/busibuilding/administrate/sysmgmt/addOrUpdateMenu.jsp"></s:include>
						</s:if>
					</TABLE>
					</td>
					<td width="5%"></td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
</s:form>
</body>